package com.cnhis.cloudhealth.clinical.clidoctor.clisendadvice.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.cnhis.cloudhealth.clinical.clidoctor.clisendadvice.bo.CliSendAdviceBo;
import com.cnhis.cloudhealth.commons.Mappers.ModelVo;
import com.cnhis.cloudhealth.commons.utils.GlobalVariable;

@Service
public class CliSendAdviceImpl implements ICliSendAdvice
{
    
    @Autowired
    private CliSendAdviceBo cliSendAdviceBo;
    
    /**
     * Clinic_Advice_Send_Pretreat 临嘱发送预处理
     */
    @Override
    public ModelVo clinicAdviceSendPretreat(Map map)
        throws Exception
    {
        return cliSendAdviceBo.execClinicAdviceSendPretreat(map);
    }
    
    /**
     * Clinic_Advice_Send 临嘱发送
     */
    @Override
    public ModelVo clinicAdviceSend(Map map)
        throws Exception
    {
        return cliSendAdviceBo.execClinicAdviceSend(map);
    }
    
    @Override
    public ModelVo querySendAdvice(Map map)
        throws Exception
    {
        return cliSendAdviceBo.querySendAdvice(map);
    }
    
    @Override
    public ModelVo checkWhetherDurg(Map map)
        throws Exception
    {
        return cliSendAdviceBo.checkWhetherDurg(map);
    }
    
    @Override
    public ModelVo checkWhetherVIP(Map map)
        throws Exception
    {
        return cliSendAdviceBo.checkWhetherVIP(map);
    }
    
    @Override
    public ModelVo getFeeItemExecutionOffices(Map map)
        throws Exception
    {
        
        return cliSendAdviceBo.getFeeItemExecutionOffices(map);
    }
    
    @Override
    public ModelVo cardBalance(Map map)
        throws Exception
    {
        return cliSendAdviceBo.cardBalance(map);
    }
    
    @Override
    public ModelVo getVbdInfo(HashMap map)
        throws Exception
    {
        return cliSendAdviceBo.getVbdInfo(map);
    }

    @Override
    public String getSystemParam(Map<String, Object> map)
        throws Exception
    {
        return cliSendAdviceBo.getParameter(GlobalVariable.IntegerIsNull(map.get("productId")),GlobalVariable.IntegerIsNull(map.get("programId")),GlobalVariable.IntegerIsNull(map.get("paramNo")));
    }
    
}
